package ch09;

/**
 * Created by hasee on 2017/6/19.
 */
public class Employee extends StaffMember {
    protected String socialSecurityNumber;
    protected double payRate;
    public Employee (String eName, String eAddress, String ePhone,
                     String socSecNumber, double rate)
    {
        super (eName, eAddress, ePhone);

        socialSecurityNumber = socSecNumber;
        payRate = rate;
    }
    public String toString()
    {
        String result = super.toString();

        result += "\nSocial Security Number: " + socialSecurityNumber;

        return result;
    }
    public double pay()
    {
        return payRate;
    }
}
